package umg.util;

import java.net.Authenticator; //import java.net.InetAddress;
import java.net.PasswordAuthentication;

public class MyAuthenticator extends Authenticator
{
	// This method is called when a password-protected URL is accessed
	protected PasswordAuthentication getPasswordAuthentication()
	{
		String username = PropertyManager.getwebadmin_username();
		String password = PropertyManager.getwebadmin_password();
		// System.out.println("Using: "+username+" "+password);
		// Return a PasswordAuthentication object
		return new PasswordAuthentication(username, password.toCharArray());
	}
}